﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication2
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
            string username = Request.QueryString["userName"];
            string password = Request.QueryString["passWord"];

            if (username!=null && password !=null)
            {

            Response.Write($"<h1>GET:欢迎你，{username}，你的密码是：{password}</h1>");
            }
            
            
            string username1 = Request.Form["UserName"];
            string password1 = Request.Form["PassWord"];

            

            if (username1 != null && password1 != null)
            {

                Response.Write($"<h1>POST:欢迎你，{username1}，你的密码是：{password1}</h1>");
            }


        }
    }
}